﻿#ifndef WEATHERAPP_H
#define WEATHERAPP_H

#include <QMainWindow>
#include <QMovie>
#include "mysql.h"
#include<QNetworkAccessManager>
#include<QNetworkReply>
#include<QNetworkRequest>
#include<QStandardItemModel>
#include<QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include<QJsonParseError>
#include"weathercharts.h"
namespace Ui {
class weatherApp;
}

class weatherApp : public QMainWindow
{
    Q_OBJECT

public:
    explicit weatherApp(QWidget *parent = nullptr);
     void backWidget(QWidget *parent);
     void parse_json(QByteArray json);
    ~weatherApp();

private slots:
     void on_pushButton_clicked();
     void on_net_finished(QNetworkReply *reply);
     void on_pushButton_3_clicked();

     void on_pushButton_2_clicked();

private:
    Ui::weatherApp *ui;
    QWidget *back;
    mySql *sql;
    QNetworkAccessManager *net;
    QStandardItemModel *model;
    weatherCharts *charts=nullptr;
};

#endif // WEATHERAPP_H
